using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Bosphorus.Integration.Jira.Thor.Dal.Helper
{
    public class NonParameteredQueryModel: QueryModel
    {
        private NonParameterdDelegate delegation;
        public delegate object NonParameterdDelegate();

        public NonParameteredQueryModel(string queryName, NonParameterdDelegate delegation)
            : base(queryName)
        {
            this.delegation = delegation;
        }

        public override IList GetData()
        {
            return (IList)delegation();
        }
    }
}